// 默认的前端设定的字典表
import { DictDataModel } from '@/api/model/dictModel'

const defaultDict: Array<{
  type: string
  children: Partial<DictDataModel>[]
}> = [
  {
    type: 'STATUS',
    children: [
      {
        value: '0',
        label: '进行中',
        type: 'primary'
      },
      {
        value: '1',
        label: '驳回',
        type: 'error'
      },
      {
        value: '2',
        label: '成功',
        type: 'success'
      }
    ]
  },
  {
    type: 'STATUS_TASK',
    children: [
      {
        value: '2',
        label: '同意',
        type: 'success'
      },
      {
        value: '1',
        label: '驳回',
        type: 'error'
      }
    ]
  },
  {
    type: 'TASK_TYPE',
    children: [
      {
        value: '0',
        label: '预算申请'
      },
      {
        value: '1',
        label: '采购申请'
      },
      {
        value: '2',
        label: '领用申请'
      },
      {
        value: '3',
        label: '借用申请'
      },
      {
        value: '4',
        label: '维修申请'
      },
      {
        value: '5',
        label: '报废申请'
      },
      {
        value: '6',
        label: '调拨申请'
      },
      {
        value: '7',
        label: '资产复活申请'
      }
    ]
  },
  {
    type: 'IN_STORE_TYPE',
    children: [
      {
        value: '0',
        label: '采购入库',
        type: 'primary'
      },
      {
        value: '1',
        label: '维修入库',
        type: 'info'
      },
      {
        value: '2',
        label: '复活入库',
        type: 'error'
      },
      {
        value: '3',
        label: '调拨入库',
        type: 'warning'
      },
      {
        value: '4',
        label: '盘盈入库',
        type: 'success'
      }
    ]
  },
  {
    type: 'FIX_STATUS',
    children: [
      {
        value: '0',
        label: '进行中',
        type: 'primary'
      },
      {
        value: '1',
        label: '维修失败',
        type: 'error'
      },
      {
        value: '2',
        label: '维修成功',
        type: 'success'
      }
    ]
  },
  // 调拨类型
  {
    type: 'ALLOCATE_TYPE',
    children: [
      {
        value: '0',
        label: '调入',
        type: 'primary'
      },
      {
        value: '1',
        label: '调出',
        type: 'warning'
      }
    ]
  },
  // 盘点状态
  {
    type: 'INVENTORY_TYPE',
    children: [
      {
        value: '0',
        label: '进行中',
        type: 'info'
      },
      {
        value: '1',
        label: '盘点完成',
        type: 'success'
      }
    ]
  },
  // 资产盘点状态
  {
    type: 'INVENTORY_DETAILS_TYPE',
    children: [
      {
        value: '0',
        label: '待盘点',
        type: 'default'
      },
      {
        value: '1',
        label: '盘亏',
        type: 'error'
      },
      {
        value: '2',
        label: '盘盈',
        type: 'success'
      },
      {
        value: '3',
        label: '已盘点',
        type: 'info'
      }
    ]
  },
  // 资产状态
  {
    type: 'ASSETS_STATUS',
    children: [
      {
        value: '1',
        label: '正常'
      },
      {
        value: '2',
        label: '已领用'
      },
      {
        value: '3',
        label: '盘亏出库'
      },
      {
        value: '4',
        label: '盘盈入库'
      },
      {
        value: '5',
        label: '已报废'
      },
      {
        value: '6',
        label: '维修中'
      },
      {
        value: '7',
        label: '维修失败'
      }
    ]
  }
]
export default defaultDict
